package software.agileCourse2013.KillerGame.web.Servlet;

import java.io.IOException;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class EnterServlet extends HttpServlet{

	private static final long serialVersionUID = -218123637402908710L;

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		req.setCharacterEncoding("utf-8");
		String roomID = req.getParameter("roomid");
		String userID = req.getParameter("userid");
		req.setAttribute("userid", userID);
		RequestDispatcher dispatcher = req.getRequestDispatcher("/chat.jsp");
		dispatcher .forward(req, resp);
	}

	
	
}
